package cz.possoft.client.clovece.gui.panel;

import info.clearthought.layout.TableLayout;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

import cz.possoft.client.clovece.gui.components.CubePane;

/**
 * Helper panel with some inner components.
 * 
 * @author <a href="mailto:mposolda@gmail.com">Marek Posolda</a>
 */
class CubePanel extends JPanel
{
   double[][] fieldSize = {{100, 25}, {50, 100, 20, 40}};
   
   protected void init(JLabel opponentLabel, CubePane cubePane, JButton pressCubeButton)
   {
      setLayout(new TableLayout(fieldSize));
      add(opponentLabel, "0,0");      
      add(cubePane, "0,1");
      add(pressCubeButton, "0,3");
   }
}

